package cn.chencq.moudle.mail.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.chencq.moudle.mail.service.MailService;
import cn.chencq.utils.R;

@RestController
public class MailController {

	@Autowired
	private MailService mailService;

	@RequestMapping("/test")
	public R sendMail() {
		mailService.sendSimpleMail("ccq@chencq.cn", "测试", "hello world");
		return R.ok();
	}
}
